import {terser} from 'rollup-plugin-terser';

export default [
  {
    input: 'src/leaflet.canvasline.js',
    output: {
      file: 'dist/leaflet.canvasline.js',
      format: 'umd',
      name: 'canvasLine',
      sourcemap: true,
    },
    plugins: [],
  },
  {
    input: 'src/leaflet.canvasline.js',
    output: {
      file: 'dist/leaflet.canvasline.min.js',
      format: 'umd',
      name: 'canvasLine',
      sourcemap: true,
    },
    plugins: [terser()],
  },
];
